package project.Config;//package project.Config;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//import project.Interceptors.LoginInterceptor;
//
//@Configuration
////配置拦截器
//public class WebConfig implements WebMvcConfigurer {
//    //注入拦截逻辑类
//    @Autowired
//    LoginInterceptor loginInterceptor;
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//
//        //添加拦截器，登录注册页面不拦截
//        registry.addInterceptor(loginInterceptor).excludePathPatterns("/user/login", "/user/register");
//    }
//}
